'use strict';

angular.module('myApp.shopdetail', ['lumx']).controller('shopdetailCtrl', ['$scope','$http','$routeParams',
	function($scope,$http,$routeParams){
		console.log($routeParams.id);
    $http.get('/seller/'+$routeParams.id).success(function(data){
    	if (!data.error) {
    		console.log(data);
    		$scope.shop = data.result;
            $("#content").after($scope.shop.content );
    	};
    });	
    $scope.jump = function(){
    	window.location.href = '#/shop';
    };

}]);